package com.dangdang.action.authorize;

import com.dangdang.action.BaseAction;
import com.dangdang.util.Constants;

/**
 * 用户登出控制层
 * 
 * @author Wangpeihu
 * @team [Never give up]
 * @since JDK1.6(建议)
 * @date 2010-1-26
 */
public class LoginOutAction extends BaseAction {

	/** 用登录请求时所在的页面 */
	private String uri;

	public String getUri() {
		return this.uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

	public String execute() throws Exception {
		session.remove(Constants.USER_KEY);
		return Constants.FORWARD_SUCCESS;
	}
}
